<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改消息管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-message-edit" th:object="${yyMessage}">
            <input name="id" th:field="*{id}" type="hidden">
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">管理用户ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="adminUserId" th:field="*{adminUserId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <div class="form-group">-->
<!--                <label class="col-sm-3 control-label">家长ID：</label>-->
<!--                <div class="col-sm-8">-->
<!--                    <input name="jzUserId" th:field="*{jzUserId}" class="form-control" type="text">-->
<!--                </div>-->
<!--            </div>-->
<!--            <input name="jzUserId11" class="form-control" th:value="${roleId}" type="hidden" id="roleId">-->

            <div class="form-group">
                <label class="col-sm-3 control-label">老师发送的消息：</label>
                <div class="col-sm-8">
                    <textarea name="messageX" class="form-control" disabled>[[*{messageX}]]</textarea>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">家长回复的消息：</label>
                <div class="col-sm-8">
                    <textarea name="messageJ" class="form-control">[[*{messageJ}]]</textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        // let roleId = document.getElementById('roleId').value

        var prefix = ctx + "system/message";
        $("#form-message-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-message-edit').serialize());
            }
        }
    </script>
</body>
</html>